package com.ctshk.rpc.system.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.system.dto.DispatchOrderRulePageDTO;
import com.ctshk.rpc.system.dto.DispatchOrderUserListDTO;
import com.ctshk.rpc.system.req.DispatchOrderRuleGetUserReq;
import com.ctshk.rpc.system.req.DispatchOrderRulePageReq;
import com.ctshk.rpc.system.req.DispatchOrderRuleSaveReq;
import com.ctshk.rpc.system.req.DispatchOrderRuleUpdateOrderNumberReq;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-05-24
 */
public interface IDispatchOrderRuleService {

    Result<PageResponse<DispatchOrderRulePageDTO>> page(DispatchOrderRulePageReq req);

    Result save(DispatchOrderRuleSaveReq req, Long userId);

    Result<List<DispatchOrderUserListDTO>> getDispatchUserListById(Long id);

    /**
     * C端获取分配的销售人
     * @return
     */
    Result<Long> getDispatchUserId(DispatchOrderRuleGetUserReq req);
}
